package com.github.thinwonton.springboot.showcase.jta.mybatisplus.orders.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

@TableName("orders")
public class Orders {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 状态，0：待支付；1：已支付
     */
    @TableField("status")
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}